interface ICommissioner extends ng.IScope {
    commissionertList:ValueListItemResponse[];
    checkboxEvent():void;
    commissionertypeList:{ type:string[]};
    typeList:{type:string[]};
}


function tmsCommissioner( valueService: IValueService,$ngBootbox:BootboxService): ng.IDirective{
    return {
        templateUrl:'./src/directives/tms-commissioner/tms-commissioner.html',
        restrict: 'E',
        transclude: true,
        replace: true,
        scope : {
            typeList:"="
        },
        link  : ($scope: ICommissioner) =>{
            //获取专员类型
            $scope.commissionertList  = valueService.getCommissionerTypeList().data;
        }
    };
}


tmsCommissioner['$inject'] = ["valueService","$ngBootbox"]
angular.module('tmsCommissioner', []).directive('tmsCommissioner', tmsCommissioner);






